-
Notifications
You must be signed in to change notification settings - Fork 42
feat: Implement custom stickiness #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sighphyre
commented
Dec 1, 2021
- Add custom stickiness for feature variants
- Add custom stickiness for flexible rollout strategies
- Implement custom stickiness property on variant defs
- Force context to resolve to nil instead of crashing with empty props
@sighphyre looks like integration tests for variants is currently failing also, it needs to be updated to latest version, with custom stickiness examples: |
Pull Request Test Coverage Report for Build 1574701104
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have #71 merged (and this PR rebased on top of it) before approving it, as it does have a change which contains side-effects.
ecb222d
to
1d97b20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! But I do have a couple of concerns that I would like to see addressed before merging:
- change the code for resolving stickiness to something more ruby idiomatic
- not changing the signature (results) for
get_by_name()
in this PR. - rebase this branch to master, and run
bundle exec rubocop
to catch any code style deviations from the project standard.
040d7da
to
540b143
Compare
- Add custom stickiness for feature variants - Add custom stickiness for flexible rollout strategies - Implement custom stickiness property on variant defs - Force context to resolve to nil instead of crashing with empty props
- Upgrade CI to use latest client spec - Fix an issued where custom properties would resolve incorrectly if camel cased in context - Fix an issue where stickiness could be nil instead of 'default'
Improve readability of stickiness resolution Co-authored-by: Renato Arruda <[email protected]>
4a7e739
to
3abfee7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I can't spot anything strange anymore :)